﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.Repository;
using Alos.IRepository;
using Alos.Entity;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Alos.RepositoryTests
{
    [TestClass]
    public class ReTeachRecordRepositoryTexts
    {
        [TestMethod]
        public void CreateReTeachRecordTexts()
        {
            ReTeachRecordRepository re = new ReTeachRecordRepository();
            ReTeachRecord ret = new ReTeachRecord();
            ret.TeacherID = 1;
            ret.LessionID = 3;
            ret.ClassID = 6;
            ret.EndTime = DateTime.Now;
            ret.InputTime = DateTime.Now;
            ret.StartTime = DateTime.Now;
            Assert.AreNotEqual(re.CreateReTeachRecord(ret), 0);
        }
         [TestMethod]
        public void UpdateTeachRecordTexts()
        {
            ReTeachRecordRepository re = new ReTeachRecordRepository();
            Assert.AreNotEqual(re.EndReTeachRecord(163,756),0);
        }
         [TestMethod]
         public void getReTeachRecord()
        {
            ReTeachRecordRepository re = new ReTeachRecordRepository();
            Assert.AreNotEqual(re.getReTeachRecord(3, 2), typeof(List<Entity.ReTeachRecord>));
        }
    }
}
